home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / stdlib / RCS / MemPanic.c,v < prev    next >
Encoding:
Text File  |  1991-12-03  |  2.2 KB  |  113 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.2.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     88.06.17.18.07.00;  author ouster;  state Exp;
  11. branches 1.2.1.1;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     88.05.20.15.49.18;  author ouster;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19. 1.2.1.1
  20. date     91.12.02.20.36.57;  author kupfer;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @@
  27.  
  28.  
  29. 1.2
  30. log
  31. @Use exit, not Proc_Exit.
  32. @
  33. text
  34. @/* 
  35.  * MemPanic.c --
  36.  *
  37.  *    Source code for the "MemPanic" procedure, which is used
  38.  *    internally by the memory allocator to die gracefully after
  39.  *    an unrecoverable error.  Different programs or uses of the
  40.  *    allocator may replace this procedure with something more
  41.  *    suitable for the particular program or use.
  42.  *
  43.  * Copyright 1985, 1988 Regents of the University of California
  44.  * Permission to use, copy, modify, and distribute this
  45.  * software and its documentation for any purpose and without
  46.  * fee is hereby granted, provided that the above copyright
  47.  * notice appear in all copies.  The University of California
  48.  * makes no representations about the suitability of this
  49.  * software for any purpose.  It is provided "as is" without
  50.  * express or implied warranty.
  51.  */
  52.  
  53. #ifndef lint
  54. static char rcsid[] = "$Header: MemPanic.c,v 1.1 88/05/20 15:49:18 ouster Exp $ SPRITE (Berkeley)";
  55. #endif not lint
  56.  
  57. #include <sprite.h>
  58. #include <sys.h>
  59.  
  60. /*
  61.  *----------------------------------------------------------------------
  62.  *
  63.  * MemPanic --
  64.  *
  65.  *    MemPanic is a procedure that's called by the memory allocator
  66.  *    when it has uncovered a fatal error.  MemPanic prints the 
  67.  *    message and aborts.  It does NOT return.
  68.  *
  69.  * Results:
  70.  *    None.
  71.  *
  72.  * Side effects:
  73.  *    The program is exited.
  74.  *
  75.  *----------------------------------------------------------------------
  76.  */
  77.  
  78. void
  79. MemPanic(message)
  80.     char *message;
  81. {
  82.     Sys_Panic(SYS_FATAL, "MemPanic: %s\n", message);
  83.     exit(1);
  84. }
  85. @
  86.  
  87.  
  88. 1.2.1.1
  89. log
  90. @Initial branch for Sprite server.
  91. @
  92. text
  93. @d21 1
  94. a21 1
  95. static char rcsid[] = "$Header: /sprite/src/lib/c/stdlib/RCS/MemPanic.c,v 1.2 88/06/17 18:07:00 ouster Exp $ SPRITE (Berkeley)";
  96. @
  97.  
  98.  
  99. 1.1
  100. log
  101. @Initial revision
  102. @
  103. text
  104. @d21 1
  105. a21 1
  106. static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
  107. a25 1
  108. #include <proc.h>
  109. d50 1
  110. a50 1
  111.     Proc_Exit(1);
  112. @
  113.